//
//  UIButton+Action.m
//  SoccerLottery
//
//  Created by chuanshuangzhang chuan shuang on 15/12/24.
//  Copyright © 2015年 chuanshuangzhang. All rights reserved.
//

#import "UIButton+Action.h"


@implementation UIButton (Action)

- (void)applyActionStyle
{
    [self setBackgroundImage:[Utils createImageWithColor:RGBACOLOR(239, 91, 110, 1.0)] forState:UIControlStateNormal];
    [self setBackgroundImage:[Utils createImageWithColor:RGBACOLOR(152, 153, 155, 1.0)] forState:UIControlStateHighlighted];
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateHighlighted];
    [self.titleLabel setFont:[UIFont systemFontOfSize:18]];
    [self.layer setMasksToBounds:YES];
    self.layer.cornerRadius = 3.0;
}
@end
